package designs.models.surface.example.one;

import java.io.BufferedReader;
import java.io.FileReader;

public class ReadFile {
	public String readFileContent(String fileName) {
		StringBuffer sb = new StringBuffer();
		try {
			FileReader fileReader = new FileReader(fileName);
			BufferedReader bf = new BufferedReader(fileReader);
			String s = null;
			while ((s = bf.readLine())!=null) {
				sb.append(s);
				sb.append("\n");
			}
			bf.close();
			fileReader.close();
			return new String(sb);
		} catch (Exception e) {
			// TODO: handle exception
		}
		
		return  null;
	}
}
